
#ifndef __VOL_CURL_SEND_MAIL_H__
#define __VOL_CURL_SEND_MAIL_H__

#include "../vol_curl.h"

class CVolCurlMailSender : public CVolCommonBase
{
public:
    static BOOL_P sPrepareSendingMail (const TCHAR* szSenderMailAddress, const TCHAR* szSenderFriendName, const TCHAR* szReplyMailAddress,
            const TCHAR* szMailCaption, const TCHAR* szMailBody, const TCHAR* szMailBodyContentType, CVolObjectArray& aryAttachmentDatas,
            const CMStringArray& saryAttachmentFileNames, CU8String& u8strMailPrepareContent);
    static const U8CHAR* sToMimeHeaderString (const TCHAR* szText, CU8String& u8strResult, const BOOL_P blpEnclose);

    static INT sSendMail (CURL* pCurl, const TCHAR* szSmtpServerAddress, INT_P npSmtpPort, const TCHAR* szUserName, const TCHAR* szPassword, const TCHAR* szSenderMailAddress,
            const TCHAR* szSendToMailAdrList, const TCHAR* szCopyToMailAdrList, const TCHAR* szInSecretToMailAdrList, const U8CHAR* u8szMailPrepareContent);
};

#endif
